package com.test.PackPatternDemo;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/05/31 17:11
 **/
public class SimpleRemoteControl {
    Command slot;

    public void setSlot(Command slot) {
        this.slot = slot;
    }

    public SimpleRemoteControl() {
    }

    public void pressButton() {
        slot.execute();
    }
}
